From: Eli Zaretskii Date: Sun, 28 Jun 2009 19:06:50 +0000 (+0000) Subject: (create_tty_output) [MSDOS]: #ifdef away. X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~324^2~11760 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=7d22148d47cbf89eb5d37ce58851b5dae3788516;p=emacs.git (create_tty_output) [MSDOS]: #ifdef away. (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version. --- diff --git a/src/term.c b/src/term.c index 3f97a74cbd6..fc778012e23 100644 --- a/src/term.c +++ b/src/term.c @@ -3178,6 +3178,7 @@ DEFUN ("gpm-mouse-stop", Fgpm_mouse_stop, Sgpm_mouse_stop, #endif /* HAVE_GPM */ +#ifndef MSDOS /*********************************************************************** Initialization ***********************************************************************/ @@ -3215,6 +3216,20 @@ tty_free_frame_resources (struct frame *f) xfree (f->output_data.tty); } +#else /* MSDOS */ + +/* Delete frame F's face cache. */ + +static void +tty_free_frame_resources (struct frame *f) +{ + if (! FRAME_TERMCAP_P (f) && ! FRAME_MSDOS_P (f)) + abort (); + + if (FRAME_FACE_CACHE (f)) + free_frame_faces (f); +} +#endif /* MSDOS */ /* Reset the hooks in TERMINAL. */